home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / EOController / PeopleDemo_sybase / Department.h next >
Encoding:
Text File  |  1994-09-14  |  905 b   |  42 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import <eointerface/eointerface.h>
  4. #import <eoaccess/eoaccess.h>
  5.  
  6. @interface Department:NSObject  
  7. {
  8.     NSString * DepartmentName;
  9.     int DeptId;
  10.     int LocationId;
  11.     id toFacility;
  12.     NSString * FacilityLocation;
  13.     NSArray * toEmployee;
  14.     
  15.     int  averageSalary;   
  16.                  /* Average salary earned by employees in the department.  
  17.                    * This attribute is not defined in the Department         
  18.                   * table.
  19.                   */
  20.     
  21. }
  22.  
  23.  
  24.  
  25. /* ACCESSOR METHODS */
  26.  
  27. - (void)setDepartmentName:(NSString *)newName;
  28. - (NSString *)DepartmentName;
  29. - (void)setDeptId:(int)newId;
  30. - (int)DeptId;
  31. - (void)setLocationId:(int)value;
  32. - (int)LocationId;
  33. - (void)setToFacility:value;
  34. - toFacility;
  35. - (void)setFacilityLocation:(NSString *)value;
  36. - (NSString *)FacilityLocation;
  37. - (void)setToEmployee:(NSArray *)value;
  38. - (NSArray *)toEmployee;
  39. - (void) setAverageSalary:(int)aSalary;
  40. - (int)averageSalary;
  41.  
  42. @end